package com.famdoc.Pojo.entity;

import com.famdoc.Pojo.dto.CheckForm;
import com.famdoc.Pojo.dto.VisitFrom;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 体检项目实体类
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CheckItem {
    private Integer id;//体检项目id
    private Float bloodGlucose; //血糖
    private Float height; //身高
    private Float weight; //体重
    private Float temperature; //体温
    private Float pulseRate; //脉率
    private Float bloodPressure; //血压

    public CheckItem(VisitFrom visitFrom){
        this.bloodGlucose=visitFrom.getBloodGlucose();
        this.height=visitFrom.getHeight();
        this.weight=visitFrom.getWeight();
        this.temperature=visitFrom.getTemperature();
        this.pulseRate= visitFrom.getPulseRate();
        this.bloodPressure=visitFrom.getBloodPressure();
    }
    public CheckItem(CheckForm checkForm){
        this.bloodGlucose=checkForm.getBloodGlucose();
        this.height=checkForm.getHeight();
        this.weight=checkForm.getWeight();
        this.temperature=checkForm.getTemperature();
        this.pulseRate= checkForm.getPulseRate();
        this.bloodPressure=checkForm.getBloodPressure();
    }

}
